<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<% request.getSession().setAttribute("login",false);
    String msg= (String) request.getSession().getAttribute("msg");
%>
<head>
    <meta charset="UTF-8"/>
    <title>用户登录</title>
	<link rel="stylesheet" type="text/css" href="css/admin_login.css"/>
</head>
<body>
<div class="admin_login_wrap">
    <h1>后台管理</h1>
    <div class="adming_login_border">
        <div class="admin_input">
            <form action="login" method="post">
                <ul class="admin_items">
                    <li>
                        <label for="user">用户名：</label>
                        <input type="text" name="user_name"  id="user" size="40" class="admin_input_style" />
                    </li>
                    <li>
                        <label for="pwd">密码：</label>
                        <input type="password" name="password"  id="pwd" size="40" class="admin_input_style" />
                    </li>
					<li style="display: inline-block;">
					    <label for="verify">验证码：</label>
					    <input type="text" name="verifyCode"  id="verify" size="40" class="admin_input_style"  style="width: 50%;"/>
						<img id="verifyCode" src="verify" style="width: 100px; height: 40px; border: 1px solid #e6e6e6; margin-right: 20px; float: right;" onclick="changeVerify(this)">
					</li>


                    <a>
                        <input type="submit" tabindex="3" value="提交" class="btn btn-primary" />
                        <a href="reg.jsp" />注册</a></li>
                    </li>
                </ul>
            </form>
            <script type="text/javascript">
                function changeVerify(img) {
                    img.src='verify?'+Date.now();
                }
            </script>
        </div>
        <div style="color: red;margin-left: 5px"><%=msg%>></div>
    </div>
</div>
</body>
</html>